<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
  	input{display: none}
  	label{border:1px solid #666;display:inline-block;float:left;}
  	p label:not(:first-child){margin-left:-1px;}
  	input + span {display:inline-block;padding:5px;}
  	input:checked + span {color:white;background:dodgerblue;}
  	p::after{content:'';clear:both;}
  </style>
</head>
<body>
	<p>	
	  <label><input type="radio" name="reply" value="php"> <span>php</span></label>
	  <label><input type="radio" name="reply" value="前端"> <span>前端</span></label>
	  <label><input type="radio" name="reply" value="UI"> <span>UI</span></label>
	</p>
  <br><br>
	<p>	
	  <label><input type="checkbox" name="get" value="php"> <span>php</span></label>
	  <label><input type="checkbox" name="get" value="javascript"> <span>javascript</span></label>
	  <label><input type="checkbox" name="get" value="css"> <span>css</span></label>
	</p>
	<br><br>
	<button id="btn">submit</button>

  <script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
  <script>

		$('#btn').on('click', function() {

  			var radioValue = $('input[name=reply]:checked').val();

  			var checkboxValue = [];
  			$('input[name=get]:checked').each(function(index, item) {
  				checkboxValue.push($(item).val());
  			});

  			checkboxValue = checkboxValue.join(',');

  			alert('(1)'+radioValue+'，(2)'+checkboxValue);

		})

  </script>
</body>
</html>